﻿<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MyMessageBox.ascx.cs"
    Inherits="MyMessageBox" %>

    <asp:LinkButton ID="LinkButtonTargetControl" runat="server"></asp:LinkButton>
    <ajax:ModalPopupExtender ID="ModalPopupExtenderMessage" runat="server" TargetControlID="LinkButtonTargetControl" 
        PopupControlID="MessageBox" OkControlID="ButtonOK" CancelControlID="CloseButton" BackgroundCssClass="messagemodalbackground" />
    
    <asp:Panel ID="MessageBox" runat="server" style="display:none;">
    <div class="MessageBox">
        <div class="messageheader">
            <asp:Label ID="LabelPopupHeader" CssClass="messageheadertext"
                runat="server"  Text="Header Text" />
            <asp:HyperLink runat="server" id="CloseButton">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/images/Message/close.png" AlternateText="Click here to close this message" />
            </asp:HyperLink>
        </div>
        <div>
            <p>
                <asp:Literal ID="litMessage" runat="server"></asp:Literal>
            </p>
        </div>
        <div class="messagefooter">
            <asp:Button ID="ButtonOK" runat="server" Text="OK" />
        </div>
    </div>
    </asp:Panel>        
    